from qgis.PyQt.QtWidgets import (QDialog, QVBoxLayout, QLabel, QLineEdit, 
                                QPushButton, QAction, QMessageBox)
from qgis.PyQt.QtGui import QIcon, QColor
from qgis.core import (QgsProject, QgsPointXY, QgsCoordinateTransform, 
                      QgsCoordinateReferenceSystem, QgsFeature, QgsGeometry,
                      QgsMapLayerProxyModel, QgsWkbTypes)
from qgis.gui import QgsMapLayerComboBox,QgsAttributeDialog,QgsRubberBand
from PyQt5.QtCore import Qt
import sys
import os

# Corrected line - changed 'json' to 'join'
sys.path.append(os.path.join(os.path.dirname(__file__), 'pointxy'))
from pointxy import CreateXY

class AddIconToToolBar:
    def __init__(self, iface):
        self.iface = iface
    
    def initGui(self):
      self.create_xy = CreateXY(self.iface)
      self.create_xy.CreateXY_initGui()

    def unload(self):
        self.create_xy.CreateXY_unload()
    

